<!--
    Copyright (C) 2013 Google Inc. All Rights Reserved.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
  -->
<!DOCTYPE html>
<html>
  <head>
    <title>Sample Media Receiver</title>
    <!-- Cast APIs  -->
    <script 
       type="text/javascript" 
       src="//www.gstatic.com/cast/sdk/libs/receiver/2.0.0/cast_receiver.js">
    </script>
    <!-- Cast Media Library -->
    <script 
       type="text/javascript"
       src="//www.gstatic.com/cast/sdk/libs/mediaplayer/0.3.0/media_player.js">
    </script>
    <!-- Wrap XMLHttpRequest through a PHP page -->
    <script 
       type="text/javascript"
       src="../../lib/js/wrapxhr.js"></script>
    <link rel="stylesheet" href="style.css">
  </head>
  <body>
    <div id="messages">
      <div id="title">Sample Media Receiver HUD</div>
      <div>Application State: <span id="applicationState">-</span></div>
      <div>Session Count: <span id="sessionCount">0</span></div>
      <div>Media Element State: <span  id="mediaElementState">-</span></div>
      <div>Cast Receiver Manager Message: <span id="castReceiverManagerMessage">-</span></div>
      <div>Media Manager Message: <span  id="mediaManagerMessage">-</span></div>
      <div>Message Bus Message: <span  id="messageBusMessage">-</span></div>
      <div>Volume: <span  id="volumeMessage">Unknown</span></div>
      <div>Host State: <span id="mediaHostState">Unknown</span></div>
      <div>Media Type: <span id="mediaType">Unkown</span></div>
      <div>Media Protocol: <span id="mediaProtocol">Unknown</span></div>
    </div>
    <video id="receiverVideoElement"></video>
    <script type="text/javascript" src="script.js"></script>
  </body>
</html>
